import { useReactive } from "ahooks";
import { useModel } from "umi";
import compress from "gql-compress";

const useDeleteBrand = () => {
	const { graphqlFetch } = useModel("global");

	const state = useReactive({
		deleteBrandloading: false,
	});

	const deleteBrand = (value, callback) => {
		state.deleteBrandloading = true;
		let res = "a";
		res && callback && callback(res);
		state.deleteBrandloading = false;
	};

	return { ...state, deleteBrand };
};

let query = compress(``);

export default useDeleteBrand;
